﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace David_Albert
{
    public class Autor
    {

        //id_author<PK>, first_name, last_name

        private int idAutor;
        private string nom;
        private string cognom;

        public Autor(int id, string n, string c)
        {
            this.idAutor = id;
            this.nom = n;
            this.cognom = c;
        }
        
        
        public Autor( string n, string c)
        {
            this.nom = n;
            this.cognom = c;
        }

        public int IdAutor
        {
            get { return idAutor; }
            set { idAutor = value; }
        }
       

        public string Nom
        {
            get { return nom; }
            set { nom = value; }
        }


        public string Cognom
        {
            get { return cognom; }
            set { cognom = value; }
        }


    }
}
